home *** CD-ROM | disk | FTP | other *** search
/ Paparazzi!: Tales of Tinseltown / Paparazzi - Tales of Tinseltown (1995)(Activision)(Disc 1 of 2).iso / pprazia1.dir / 00494_Bitmap_StopBTN < prev    next >
Text File  |  1995-05-21  |  27KB  |  771 lines

  1. on startMovie
  2.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,¼
  3.  g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A,g09A, g08A, g05A, g03A, g25A, g22A,¼
  4.   gMags, Player1, Player2, Player3, Player4, Player5, Player6,¼
  5.  gCurrentPlayer,textTemp,gTheCDPath, whichPlayer, CDorHD, HDPathName, gReset, GameOrOptions, TheDrivePath
  6.   
  7.   set the exitlock to true
  8.   
  9.   --loads all the data from the text files
  10.   -- set gTheCDPath = "PPrazzi1:Assets:"
  11.   set gReset = ""
  12.   set GameOrOptions = ""
  13.   if CDorHD = "yes" then
  14.     
  15.     if objectP(textTemp) then textTemp(mDispose)
  16.     put fileIO(mNew, "read", HDPathName & "ACurPlyr.txt") into textTemp
  17.     put textTemp(mReadFile) into gCurrentPlayer
  18.     textTemp(mDispose)
  19.     
  20.     if objectP(textTemp) then textTemp(mDispose)
  21.     put fileIO(mNew, "read", HDPathName & "APlayer1.txt") into textTemp
  22.     put textTemp(mReadFile) into Player1
  23.     textTemp(mDispose)
  24.     
  25.     if objectP(textTemp) then textTemp(mDispose)
  26.     put fileIO(mNew, "read", HDPathName & "APlayer2.txt") into textTemp
  27.     put textTemp(mReadFile) into Player2
  28.     textTemp(mDispose)
  29.     
  30.     if objectP(textTemp) then textTemp(mDispose)
  31.     put fileIO(mNew, "read", HDPathName & "APlayer3.txt") into textTemp
  32.     put textTemp(mReadFile) into Player3
  33.     textTemp(mDispose)
  34.     
  35.     if objectP(textTemp) then textTemp(mDispose)
  36.     put fileIO(mNew, "read", HDPathName & "APlayer4.txt") into textTemp
  37.     put textTemp(mReadFile) into Player4
  38.     textTemp(mDispose)
  39.     
  40.     if objectP(textTemp) then textTemp(mDispose)
  41.     put fileIO(mNew, "read", HDPathName & "APlayer5.txt") into textTemp
  42.     put textTemp(mReadFile) into Player5
  43.     textTemp(mDispose)
  44.     
  45.     if objectP(textTemp) then textTemp(mDispose)
  46.     put fileIO(mNew, "read", HDPathName & "APlayer6.txt") into textTemp
  47.     put textTemp(mReadFile) into Player6
  48.     textTemp(mDispose)
  49.     
  50.   else
  51.     if objectP(textTemp) then textTemp(mDispose)
  52.     put fileIO(mNew, "read", HDPathName & "ACurPlyr.txt") into textTemp
  53.     put textTemp(mReadFile) into gCurrentPlayer
  54.     textTemp(mDispose)
  55.     
  56.     if objectP(textTemp) then textTemp(mDispose)
  57.     put fileIO(mNew, "read", HDPathName & "APlayer1.txt") into textTemp
  58.     put textTemp(mReadFile) into Player1
  59.     textTemp(mDispose)
  60.     
  61.     if objectP(textTemp) then textTemp(mDispose)
  62.     put fileIO(mNew, "read", HDPathName & "APlayer2.txt") into textTemp
  63.     put textTemp(mReadFile) into Player2
  64.     textTemp(mDispose)
  65.     
  66.     if objectP(textTemp) then textTemp(mDispose)
  67.     put fileIO(mNew, "read", HDPathName & "APlayer3.txt") into textTemp
  68.     put textTemp(mReadFile) into Player3
  69.     textTemp(mDispose)
  70.     
  71.     if objectP(textTemp) then textTemp(mDispose)
  72.     put fileIO(mNew, "read", HDPathName & "APlayer4.txt") into textTemp
  73.     put textTemp(mReadFile) into Player4
  74.     textTemp(mDispose)
  75.     
  76.     if objectP(textTemp) then textTemp(mDispose)
  77.     put fileIO(mNew, "read", HDPathName & "APlayer5.txt") into textTemp
  78.     put textTemp(mReadFile) into Player5
  79.     textTemp(mDispose)
  80.     
  81.     if objectP(textTemp) then textTemp(mDispose)
  82.     put fileIO(mNew, "read", HDPathName & "APlayer6.txt") into textTemp
  83.     put textTemp(mReadFile) into Player6
  84.     textTemp(mDispose)
  85.   end if
  86.   
  87.   if value(gCurrentPlayer) = 1 then set WhichPlayer = Player1
  88.   if value(gCurrentPlayer) = 2 then set WhichPlayer = Player2
  89.   if value(gCurrentPlayer) = 3 then set WhichPlayer = Player3
  90.   if value(gCurrentPlayer) = 4 then set WhichPlayer = Player4
  91.   if value(gCurrentPlayer) = 5 then set WhichPlayer = Player5
  92.   if value(gCurrentPlayer) = 6 then set WhichPlayer = Player6 
  93.   
  94.   if value(gCurrentPlayer) = 0 then 
  95.     exit
  96.   else
  97.     LoadEmUp
  98.   end if
  99. end startMovie
  100.  
  101. on LoadEmUp
  102.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,gSuccessRate,¼
  103.  g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A,g09A, g08A, g05A, g03A, g25A, g22A,¼
  104.   gMags, Player1, Player2, Player3, Player4, Player5, Player6, gCurrentPlayer,¼
  105.  gTheDay, whichPlayer, conglomo, InvitedOrNot
  106.   
  107.   set gMoney = the value of line 2 of WhichPlayer
  108.   set gIntegrity = the value of line 3 of WhichPlayer
  109.   set gDayOfTheWeek = the value of line 4 of WhichPlayer
  110.   set gDayOrNight = line 5 of WhichPlayer
  111.   set gOneOrTwo = the value of line 6 of WhichPlayer
  112.   set gSuccessRate = the value of line 7 of WhichPlayer
  113.   set g19A = item 1 of line 8 of WhichPlayer
  114.   set g18A = item 2 of line 8 of WhichPlayer
  115.   set g01A = item 3 of line 8 of WhichPlayer
  116.   set g11A = item 4 of line 8 of WhichPlayer
  117.   set g02A = item 5 of line 8 of WhichPlayer
  118.   set g15A = item 6 of line 8 of WhichPlayer
  119.   set g13A = item 7 of line 8 of WhichPlayer
  120.   set g06A = item 8 of line 8 of WhichPlayer
  121.   set g09A = item 9 of line 8 of WhichPlayer
  122.   set g08A = item 10 of line 8 of WhichPlayer
  123.   set g05A = item 11 of line 8 of WhichPlayer
  124.   set g03A = item 12 of line 8 of WhichPlayer
  125.   set g25A = item 13 of line 8 of WhichPlayer
  126.   set g22A = item 14 of line 8 of WhichPlayer
  127.   set conglomo = line 13 of whichPlayer
  128.   set InvitedOrNot = line 14 of whichPlayer
  129.   whatDayIsIt
  130. end LoadEmUp
  131.  
  132. on WhatDayIsIt
  133.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo, gTheDay
  134.   
  135.   put gDayOfTheWeek & gDayOrNight into gTheDay
  136. end WhatDayIsIt
  137.  
  138. on LoadNPlay movieNframeName
  139.   global movieNframeName
  140.   puppetsound "button.aif"
  141.   go frame movieNframeName
  142. end
  143.  
  144. on TVLoad
  145.   global theTVName
  146.   puppetsound 0
  147. end TVLoad
  148.  
  149.  
  150. on hiliter spriteNum, castName, castNameHL
  151.   repeat while the mousedown
  152.     if rollover(spriteNum) then
  153.       set the castNum of sprite spriteNum = cast castNameHL
  154.       updatestage
  155.     else
  156.       set the castNum of sprite spriteNum = cast castName
  157.       updatestage
  158.       exit
  159.     end if
  160.   end repeat
  161. end
  162.  
  163. on turnOnDollars
  164.   repeat with i = 14 to 21
  165.     puppetSprite i, true
  166.   end repeat
  167. end turnOnDollars
  168.  
  169. on turnOffDollars
  170.   repeat with i = 14 to 21
  171.     puppetSprite i, false
  172.   end repeat
  173. end turnOffDollars
  174.  
  175. on turnOnBuyers
  176.   repeat with i = 33 to 37
  177.     puppetSprite i, true
  178.   end repeat
  179. end turnOnBuyers
  180.  
  181. on turnOffBuyers
  182.   repeat with i = 33 to 37
  183.     puppetSprite i, false
  184.   end repeat
  185. end turnOffBuyers
  186.  
  187.  
  188.  
  189. on WriteUpdatedInfo
  190.   global Player1, Player2, Player3, Player4, Player5, Player6,¼
  191.  gCurrentPlayer, gThePath, UpDatedPlayer, textTemp1, fileIO,¼
  192.  WhichPlayer, HDPathName, CDorHD
  193.   
  194.   UpDatePlayerData 
  195.   
  196.   if value(gCurrentPlayer) = 1 then put "APlayer1.txt" into TheDoc
  197.   if value(gCurrentPlayer) = 2 then put "APlayer2.txt" into TheDoc
  198.   if value(gCurrentPlayer) = 3 then put "APLAYER3.txt" into TheDoc
  199.   if value(gCurrentPlayer) = 4 then put "APLAYER4.txt" into TheDoc
  200.   if value(gCurrentPlayer) = 5 then put "APLAYER5.txt" into TheDoc
  201.   if value(gCurrentPlayer) = 6 then put "APLAYER6.txt" into TheDoc
  202.   
  203.   -- writes the updated player data to the current player's text file
  204.   if CDorHD = "yes" then
  205.     
  206.     if objectP(textTemp1) then textTemp1(mDispose)
  207.     set textTemp1 = FileIO(mNew, "write", HDPathName & TheDoc)
  208.     textTemp1(mWriteString, string(UpDatedPlayer))
  209.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  210.     textTemp1(mDispose)
  211.     
  212.   else
  213.     if objectP(textTemp1) then textTemp1(mDispose)
  214.     set textTemp1 = FileIO(mNew, "write", HDPathName & TheDoc)
  215.     textTemp1(mWriteString, string(UpDatedPlayer))
  216.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  217.     textTemp1(mDispose)
  218.   end if
  219.   
  220.   --updates the current player's global
  221.   if value(gCurrentPlayer) = 1 then set Player1 = WhichPlayer
  222.   if value(gCurrentPlayer) = 2 then set Player2 = WhichPlayer
  223.   if value(gCurrentPlayer) = 3 then set Player3 = WhichPlayer
  224.   if value(gCurrentPlayer) = 4 then set Player4 = WhichPlayer
  225.   if value(gCurrentPlayer) = 5 then set Player5 = WhichPlayer
  226.   if value(gCurrentPlayer) = 6 then set Player6 = WhichPlayer
  227.   
  228. end WriteUpdatedInfo 
  229.  
  230. on UpDatePlayerData
  231.   global gMoney, gIntegrity, gDayOfTheWeek, gDayOrNight, gOneOrTwo,gSuccessRate,¼
  232. g19A, g18A,g01A,g11A,g02A, g15A, g13A, g06A,g09A, g08A, g05A, g03A, g25A, g22A,¼
  233.   gMags, UpDatedPlayer, WhichPlayer, conglomo, InvitedOrNot
  234.   
  235.   put gMoney into line 2 of WhichPlayer
  236.   put gIntegrity into line 3 of WhichPlayer
  237.   put gDayOfTheWeek into line 4 of WhichPlayer
  238.   put gDayOrNight into line 5 of WhichPlayer
  239.   put gOneOrTwo into line 6 of WhichPlayer
  240.   put gSuccessRate into line 7 of WhichPlayer
  241.   put gMoney into line 2 of WhichPlayer
  242.   put g19A into item 1 of line 8 of WhichPlayer
  243.   put g18A into item 2 of line 8 of WhichPlayer
  244.   put g01A into item 3 of line 8 of WhichPlayer
  245.   put g11A into item 4 of line 8 of WhichPlayer
  246.   put g02A into item 5 of line 8 of WhichPlayer
  247.   put g15A into item 6 of line 8 of WhichPlayer
  248.   put g13A into item 7 of line 8 of WhichPlayer
  249.   put g06A into item 8 of line 8 of WhichPlayer
  250.   put g09A into item 9 of line 8 of WhichPlayer
  251.   put g08A into item 10 of line 8 of WhichPlayer
  252.   put g05A into item 11 of line 8 of WhichPlayer
  253.   put g03A into item 12 of line 8 of WhichPlayer
  254.   put g25A into item 13 of line 8 of WhichPlayer
  255.   put g22A into item 14 of line 8 of WhichPlayer
  256.   put "OptDay" & gDayOfTheWeek into line 12 of whichplayer 
  257.   put conglomo into line 13 of whichplayer
  258.   put InvitedOrNot into line 14 of WhichPlayer
  259.   set UpDatedPlayer = WhichPlayer
  260.   
  261. end UpDatePlayerData
  262.  
  263. on calculateMoney
  264.   global gMoney
  265.   
  266.   set MoneyHolder = ",,,,,,,"
  267.   set CharTemp = the length of string(gmoney)
  268.   
  269.   set theDif = 7 - CharTemp
  270.   
  271.   repeat with i = CharTemp down to 1
  272.     put char i of string(gMoney) into item i + TheDif of MoneyHolder
  273.   end repeat
  274.   
  275.   set y = 0
  276.   
  277.   repeat with x = 14 to 20
  278.     set y = y + 1
  279.     if item y of MoneyHolder = "" then set the castNum of sprite x to cast "Mblank"
  280.     if item y of MoneyHolder = "-" then set the castNum of sprite x to cast "Mminus"
  281.     if item y of MoneyHolder = "0" then set the castNum of sprite x to cast "M0"
  282.     if item y of MoneyHolder = "1" then set the castNum of sprite x to cast "M1"
  283.     if item y of MoneyHolder = "2" then set the castNum of sprite x to cast "M2"
  284.     if item y of MoneyHolder = "3" then set the castNum of sprite x to cast "M3"
  285.     if item y of MoneyHolder = "4" then set the castNum of sprite x to cast "M4"
  286.     if item y of MoneyHolder = "5" then set the castNum of sprite x to cast "M5"
  287.     if item y of MoneyHolder = "6" then set the castNum of sprite x to cast "M6"
  288.     if item y of MoneyHolder = "7" then set the castNum of sprite x to cast "M7"
  289.     if item y of MoneyHolder = "8" then set the castNum of sprite x to cast "M8"
  290.     if item y of MoneyHolder = "9" then set the castNum of sprite x to cast "M9"
  291.   end repeat
  292.   updateStage
  293.   
  294. end calulateMoney
  295.  
  296. on integrameter
  297.   global gIntegrity
  298.   if gIntegrity >= 89 then set the castNum of sprite 21 to cast "ed himself"
  299.   if gIntegrity >= 79 and gIntegrity <= 88 then set the castNum of sprite 21 to cast "Angel"
  300.   if gIntegrity >= 69 and gIntegrity <= 78 then set the castNum of sprite 21 to cast "Priest"
  301.   if gIntegrity >= 59 and gIntegrity <= 68 then set¼
  302.  the castNum of sprite 21 to cast "Canadian Mounty"
  303.   if gIntegrity >= 49 and gIntegrity <= 58 then set the castNum of sprite 21 to cast "Person Scout"
  304.   if gIntegrity >= 39 and gIntegrity <= 48 then set the castNum of sprite 21 to cast "Honorable"
  305.   if gIntegrity >= 29 and gIntegrity <= 38 then set the castNum of sprite 21 to cast "Friendly"
  306.   if gIntegrity >= 19 and gIntegrity <= 28 then set the castNum of sprite 21 to cast "Courteous"
  307.   if gIntegrity >= 9 and gIntegrity <= 18 then set the castNum of sprite 21 to cast "Basically Nice"
  308.   if gIntegrity >= -1 and gIntegrity <= 8 then set the castNum of sprite 21 to cast "Law Abiding"
  309.   if gIntegrity >= -11 and gIntegrity <= -2 then set the castNum of sprite 21 to cast "Decent"
  310.   if gIntegrity >= -21 and gIntegrity <= -12 then set the castNum of sprite 21 to cast "Average"
  311.   if gIntegrity >= -31 and gIntegrity <= -22 then set¼
  312.  the castNum of sprite 21 to cast "All Too Human"
  313.   if gIntegrity >= -41 and gIntegrity <= -32 then set the castNum of sprite 21 to cast "Fallible"
  314.   if gIntegrity >= -51 and gIntegrity <= -42 then set the castNum of sprite 21 to cast "Sneaky"
  315.   if gIntegrity >= -61 and gIntegrity <= -52 then set¼
  316.  the castNum of sprite 21 to cast "Troublemaker"
  317.   if gIntegrity >= -71 and gIntegrity <= -62 then set the castNum of sprite 21 to cast "Peeping Tom"
  318.   if gIntegrity >= -81 and gIntegrity <= -72 then set the castNum of sprite 21 to cast "Shifty"
  319.   if gIntegrity >= -91 and gIntegrity <= -82 then set the castNum of sprite 21 to cast "Jerk"
  320.   if gIntegrity >= -101 and gIntegrity <= -92 then set the castNum of sprite 21 to cast "Hoodlum"
  321.   if gIntegrity >= -111 and gIntegrity <= -102 then set the castNum of sprite 21 to cast "Rat"
  322.   if gIntegrity >= -121 and gIntegrity <= -112 then set the castNum of sprite 21 to cast "Liar"
  323.   if gIntegrity >= -131 and gIntegrity <= -122 then set the castNum of sprite 21 to cast "Sludge"
  324.   if gIntegrity >= -141 and gIntegrity <= -132 then set the castNum of sprite 21 to cast "Leech"
  325.   if gIntegrity >= -151 and gIntegrity <= -142 then set¼
  326.  the castNum of sprite 21 to cast "Scumsucker"
  327.   if gIntegrity >= -161 and gIntegrity <= -152 then set¼
  328.  the castNum of sprite 21 to cast "Satan himself"
  329.   if gIntegrity <= -162 then set¼
  330.  the castNum of sprite 21 to cast "Paparazzi"
  331.   updatestage
  332. end integrameter
  333.  
  334. on richOrPoor
  335.   global gmoney, howRich
  336.   if gMoney <= 0 then set howRich = "Feet"
  337.   if gMoney >= 1 and gmoney <= 2500 then set howRich = "olds"
  338.   if gMoney >= 2501 and gmoney <= 10000 then set howRich = "celica"
  339.   if gMoney >= 10001 and gmoney <= 50000 then set howRich = "jeep"
  340.   if gMoney >= 50001 then set howRich = "A3000"
  341.   go frame "Travel"
  342. end richOrPoor
  343.  
  344. on getItOrNot
  345.   global gTheShot, whichBuyer, payoffStart, payoffEnd, gConditional, gTheDay
  346.   
  347.   whatDayIsIt
  348.   
  349.   if whichBuyer = "SkippyPayCont" then 
  350.     go frame "SkippyPayCont"
  351.     exit
  352.   end if
  353.   
  354.   if whichBuyer = "NoBuyers" then 
  355.     go frame gTheDay & "NoBuyers"
  356.     exit
  357.   end if
  358.   
  359.   if gTheShot >= payoffStart and gTheShot <= payoffEnd then --You Got It!
  360.     --mark the global for that shot
  361.     set gConditional = "c"
  362.     go frame whichBuyer
  363.   else
  364.     go frame gTheDay & "NoBuyers"  --you missed it
  365.   end if
  366. end getItOrNot
  367.  
  368. on optionsON
  369.   repeat with q = 9 to 28
  370.     puppetsprite q, true
  371.   end repeat
  372.   updatestage
  373. end optionsON
  374.  
  375. on optionsOFF
  376.   repeat with q = 9 to 28
  377.     puppetsprite q, false
  378.   end repeat
  379.   updatestage
  380. end optionsOFF
  381.  
  382. on writeCurrentPlayer
  383.   global gCurrentPlayer, FileIO, textTemp1, whichPlayer,¼
  384. player1, player2, player3, player4, player5, player6, gThePath,¼
  385.  HDPathName, CDorHD
  386.   
  387.   if CDorHD = "yes" then
  388.     
  389.     if objectP(textTemp1) then textTemp1(mDispose)
  390.     set textTemp1 = FileIO(mNew, "write", HDPathName & "ACurPlyr.txt")
  391.     textTemp1(mWriteString, string(gCurrentPlayer))
  392.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  393.     textTemp1(mDispose)
  394.   else
  395.     if objectP(textTemp1) then textTemp1(mDispose)
  396.     set textTemp1 = FileIO(mNew, "write", HDPathName & "ACurPlyr.txt")
  397.     textTemp1(mWriteString, string(gCurrentPlayer))
  398.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  399.     textTemp1(mDispose)
  400.   end if
  401.   
  402.   if value(gCurrentPlayer) = 1 then set WhichPlayer = Player1
  403.   if value(gCurrentPlayer) = 2 then set WhichPlayer = Player2
  404.   if value(gCurrentPlayer) = 3 then set WhichPlayer = Player3
  405.   if value(gCurrentPlayer) = 4 then set WhichPlayer = Player4
  406.   if value(gCurrentPlayer) = 5 then set WhichPlayer = Player5
  407.   if value(gCurrentPlayer) = 6 then set WhichPlayer = Player6
  408.   
  409.   LoadEmUp
  410.   
  411. end writeCurrentPlayer
  412.  
  413. on resurectMe
  414.   global gCurrentPlayer, FileIO, textTemp1, whichPlayer,¼
  415. player1, player2, player3, player4, player5, player6, gThePath,¼
  416.  theDoc, HDPathName, CDorHD, TheDrivePath
  417.   
  418.   if CDorHD = "yes" then
  419.     if objectP(textTemp1) then textTemp1(mDispose)
  420.     set textTemp1 = FileIO(mNew, "write", HDPathName & theDoc)
  421.     textTemp1(mWriteString, string(whichPlayer))
  422.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  423.     textTemp1(mDispose)
  424.   else
  425.     if objectP(textTemp1) then textTemp1(mDispose)
  426.     set textTemp1 = FileIO(mNew, "write", HDPathName & theDoc)
  427.     textTemp1(mWriteString, string(whichPlayer))
  428.     textTemp1(mSetFinderInfo, "TEXT", "MSWD")    
  429.     textTemp1(mDispose)
  430.   end if
  431.   
  432. end resurectMe
  433.  
  434. on whatsMyName a, b, c, spriteNum
  435.   global whichplayer
  436.   
  437.   if line 10 of whichPlayer = a then 
  438.     put b into line 10 of whichPlayer
  439.     set the castNum of sprite spriteNum to cast b
  440.     updatestage
  441.     exit
  442.   end if
  443.   
  444.   if line 10 of whichPlayer = b then 
  445.     put c into line 10 of whichPlayer
  446.     set the castNum of sprite spriteNum to cast c
  447.     updatestage
  448.     exit
  449.   end if
  450.   
  451.   if line 10 of whichPlayer = c then 
  452.     put a into line 10 of whichPlayer
  453.     set the castNum of sprite spriteNum to cast a
  454.     updatestage
  455.     exit
  456.   end if
  457. end whatsMyName
  458.  
  459. on WipeConditionals
  460.   global motel, mall, fug, cheevers, hotel, court, cclub, lingo,¼
  461.   sigis, markit, rosy, alley, park, tv1, tv2, tv3, tv4, tv5, tv6, ¼
  462.   calls
  463.   --clears all the conditionals at trans time
  464.   --fresh start for each section
  465.   put "" into motel
  466.   put "" into mall
  467.   put "" into fug
  468.   put "" into cheevers
  469.   put "" into hotel
  470.   put "" into court
  471.   put "" into cclub
  472.   put "" into lingo
  473.   put "" into sigis
  474.   put "" into markit
  475.   put "" into rosy
  476.   put "" into alley
  477.   put "" into park
  478.   put "" into tv1
  479.   put "" into tv2
  480.   put "" into tv3
  481.   put "" into tv4
  482.   put "" into tv5
  483.   put "" into tv6
  484.   put "" into calls
  485.   
  486. end WipeConditionals
  487.  
  488. on turnOnDaycons
  489.   repeat with d = 28 to 31
  490.     puppetsprite d, true
  491.   end repeat
  492. end turnOnDaycons
  493.  
  494. on turnOffDaycons
  495.   repeat with d = 28 to 31
  496.     puppetsprite d, false
  497.   end repeat
  498. end turnOffDaycons
  499.  
  500. on GameContinue
  501.   global gCondition, gCurrentPlayer, whichPlayer, gDayOfTheWeek,¼
  502.  gDayOrNight, gOneOrTwo, gTheDay, gTheCDPath, TheMast, g19A,¼
  503.  gsuccessRate, theMovieName, fug, alley, HDPathName, TheDrivePath
  504.   
  505.   set the directToStage of cast theMovieName to 0
  506.   unloadCast theMovieName
  507.   turnOffDollars
  508.   turnOffDaycons
  509.   puppetSprite 3, false
  510.   puppetsprite 48, false
  511.   set the castNum of sprite 23 to cast "ContinueBTN"
  512.   updatestage
  513.   sound Playfile 1, HDPathName & "part3.aif"
  514.   
  515.   if gDayOrNight = "D"  and  gOneOrTwo = 1 then
  516.     set gOneOrTwo = 2
  517.     --write out the updated player info
  518.     WriteUpdatedInfo
  519.     whatDayIsIt
  520.     CheckTheCDResume
  521.     exit
  522.   end if
  523.   
  524.   if gDayOrNight = "N"  and  gOneOrTwo = 1 then
  525.     set gOneOrTwo = 2
  526.     --write out the updated player info
  527.     WriteUpdatedInfo
  528.     whatDayIsIt
  529.     CheckTheCDResume
  530.     exit
  531.   end if
  532.   
  533.   
  534.   if gDayOrNight = "D"  and  gOneOrTwo = 2 then
  535.     set gDayOrNight = "N"
  536.     set gOneOrTwo = 1
  537.     --write out the updated player info
  538.     WriteUpdatedInfo
  539.     whatDayIsIt
  540.     CheckTheCD
  541.     exit
  542.   end if
  543.   
  544.   if gDayOrNight = "N"  and  gOneOrTwo = 2 then
  545.     set gDayOfTheWeek = gDayOfTheWeek + 1
  546.     set gDayOrNight = "D"
  547.     set gOneOrTwo = 1
  548.     --write out the updated player info
  549.     WriteUpdatedInfo
  550.     whatDayIsIt
  551.     turnOffdollars
  552.     CheckTheCD
  553.     exit
  554.   end if
  555.   
  556. end GameContinue 
  557.  
  558. on AcceptIt
  559.   global gMoneyTemp, gMoney, gIntegrity, gIntegrityTemp
  560.   set the castNum of sprite 25 = cast "Accept"
  561.   updatestage
  562.   set gMoney = gMoney + gMoneyTemp
  563.   set gIntegrity = gIntegrity + gIntegrityTemp
  564.   puppetsound "chaching.aif"
  565.   calculateMoney
  566.   integrameter
  567.   turnOffBuyers
  568. end AcceptIt
  569.  
  570. on ResetMe
  571.   global gTheDay, gCurrentPlayer, whichPlayer, player1, player2,¼
  572. player3, player4, player5, player6, theDoc
  573.   
  574.   if the clickON = 9 then 
  575.     set gCurrentPlayer = 1
  576.     set theCurrentName = line 10 of player1
  577.     set whichPlayer = the text of cast "player1"
  578.     put theCurrentName into line 10 of whichPlayer
  579.     put "Esmaralda" into a
  580.     put "Josephine" into b
  581.     put "Etta" into c
  582.     put 16 into spriteNum
  583.     WhatsMyName a, b, c, spriteNum
  584.     put "Fem1" into line 11 of whichplayer
  585.     set player1 = whichplayer
  586.     set theDoc = "APlayer1.txt"
  587.     resurectMe
  588.     set the castNum of sprite 9 to cast "Fem1"
  589.     set the castNum of sprite 23 to cast "optionsBlank"
  590.     puppetsound 0
  591.     updatestage
  592.     exit
  593.   end if
  594.   
  595.   if the clickON = 10 then 
  596.     set gCurrentPlayer = 2
  597.     set theCurrentName = line 10 of player2
  598.     set whichPlayer = the text of cast "player2"
  599.     put theCurrentName into line 10 of whichPlayer
  600.     put "Zoe" into a
  601.     put "Chloe" into b
  602.     put "Fifi" into c
  603.     put 17 into spriteNum
  604.     WhatsMyName a, b, c, spriteNum
  605.     put "Fem2" into line 11 of whichplayer
  606.     set player2 = whichplayer
  607.     set theDoc = "APlayer2.txt"
  608.     resurectMe
  609.     set the castNum of sprite 10 to cast "Fem2"
  610.     set the castNum of sprite 24 to cast "optionsBlank"
  611.     puppetsound 0
  612.     updatestage
  613.     exit
  614.   end if
  615.   
  616.   if the clickON = 11 then 
  617.     set gCurrentPlayer = 3
  618.     set theCurrentName = line 10 of player3
  619.     set whichPlayer = the text of cast "player3"
  620.     put theCurrentName into line 10 of whichPlayer
  621.     put "Hilary" into a
  622.     put "Tara" into b
  623.     put "Jo" into c
  624.     put 18 into spriteNum
  625.     WhatsMyName a, b, c, spriteNum
  626.     put "Fem3" into line 11 of whichplayer
  627.     set player3 = whichplayer
  628.     set theDoc = "APlayer3.txt"
  629.     resurectMe whichplayer, theDoc
  630.     set the castNum of sprite 11 to cast "Fem3"
  631.     set the castNum of sprite 25 to cast "optionsBlank"
  632.     puppetsound 0
  633.     updatestage
  634.     exit
  635.   end if
  636.   
  637.   if the clickON = 12 then 
  638.     set gCurrentPlayer = 4
  639.     set theCurrentName = line 10 of player4
  640.     set whichPlayer = the text of cast "player4"
  641.     put theCurrentName into line 10 of whichPlayer
  642.     put "Biff" into a
  643.     put "Dudley" into b
  644.     put "Clancy" into c
  645.     put 19 into spriteNum
  646.     WhatsMyName a, b, c, spriteNum
  647.     put "Male1" into line 11 of whichplayer
  648.     set player4 = whichplayer
  649.     set theDoc = "APlayer4.txt"
  650.     resurectMe
  651.     set the castNum of sprite 12 to cast "Male1"
  652.     set the castNum of sprite 26 to cast "optionsBlank"
  653.     puppetsound 0
  654.     updatestage
  655.     exit
  656.   end if
  657.   
  658.   if the clickON = 13 then 
  659.     set gCurrentPlayer = 5
  660.     set theCurrentName = line 10 of player5
  661.     set whichPlayer = the text of cast "player5"
  662.     put theCurrentName into line 10 of whichPlayer
  663.     put "Luciano" into a
  664.     put "Marcello" into b
  665.     put "Antonio" into c
  666.     put 20 into spriteNum
  667.     WhatsMyName a, b, c, spriteNum
  668.     put "Male2" into line 11 of whichplayer
  669.     set player5 = whichplayer
  670.     set theDoc = "APlayer5.txt"
  671.     resurectMe
  672.     set the castNum of sprite 13 to cast "Male2"
  673.     set the castNum of sprite 27 to cast "optionsBlank"
  674.     puppetsound 0
  675.     updatestage
  676.     exit
  677.   end if
  678.   
  679.   if the clickON = 14 then 
  680.     set gCurrentPlayer = 6
  681.     set theCurrentName = line 10 of player6
  682.     set whichPlayer = the text of cast "player6"
  683.     put theCurrentName into line 10 of whichPlayer
  684.     put "Ratso" into a
  685.     put "Aaron" into b
  686.     put "Slick" into c
  687.     put 21 into spriteNum
  688.     WhatsMyName a, b, c, spriteNum
  689.     put "Male3" into line 11 of whichplayer
  690.     set player6 = whichplayer
  691.     set theDoc = "APlayer6.txt"
  692.     resurectMe
  693.     set the castNum of sprite 14 to cast "Male3"
  694.     set the castNum of sprite 28 to cast "optionsBlank"
  695.     puppetsound 0
  696.     updatestage
  697.     exit
  698.   end if
  699.   
  700.   updatestage
  701. end ResetMe
  702.  
  703. on CheckTheCD
  704.   global gDayOfTheWeek, gTheDay,ThePapMovie1, ThePapMovie2, TheDrivePath, HDPathName
  705.   
  706.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD1
  707.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD2
  708.   
  709.   if gDayOfTheWeek <= 8 then -- player is at first week i.e. days 1-8
  710.     if (CD1 = "A01.TXT") then -- and the first CD is in
  711.       if the movie = "PPraziA1.dir" then -- and if the current movie name is this movie
  712.         go frame gTheDay & "trans" -- go to the proper day's transition screen
  713.         exit
  714.       else
  715.         go frame "ThinkingTrans" of movie HDPathName & "PPraziA1.dir" -- go to the 1st movie
  716.         exit
  717.       end if
  718.     else -- if CD1 isn't in the drive
  719.       go frame "AskForCD1" of movie HDpathname & "PapHelp.Dir"
  720.       exit
  721.     end if
  722.   else -- if the player is on the second week i.e. days 9-14
  723.     if (CD2 = "A02.TXT") then -- and the second CD is in
  724.       if the movie = "PPraziA2.dir" then -- and if the current movie name is this movie
  725.         go frame gTheDay & "trans" -- go to the proper day's transition screen
  726.         exit
  727.       else
  728.         go frame "ThinkingTrans" of movie HDPathName & "PPraziA2.dir" -- go to the 2nd movie
  729.         exit
  730.       end if
  731.     else -- if CD2 isn't in the drive
  732.       go frame "AskForCD2" of movie HDpathname & "PapHelp.Dir"
  733.       exit
  734.     end if
  735.   end if
  736. end CheckTheCD
  737.  
  738. on CheckTheCDResume
  739.   global gDayOfTheWeek, gTheDay,ThePapMovie1, ThePapMovie2, TheDrivePath, HDPathName
  740.   
  741.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD1
  742.   put getNthFileNameInFolder(TheDrivePath & ":\Assets", 1) into CD2
  743.   
  744.   if gDayOfTheWeek <= 8 then -- player is at first week i.e. days 1-8
  745.     if (CD1 = "A01.TXT") then -- and the first CD is in
  746.       if the movie = "PPraziA1.dir" then -- and if the current movie name is this movie
  747.         go frame gTheDay & "idle" -- go to the proper day's transition screen
  748.         exit
  749.       else
  750.         go frame "ThinkingIdle" of movie HDPathName & "PPraziA1.dir" -- go to the 1st movie
  751.         exit
  752.       end if
  753.     else -- if CD1 isn't in the drive
  754.       go frame "AskForCD1" of movie HDpathname & "PapHelp.Dir"
  755.       exit
  756.     end if
  757.   else -- if the player is on the second week i.e. days 9-14
  758.     if (CD2 = "A02.TXT") then -- and the second CD is in
  759.       if the movie = "PPraziA2.dir" then -- and if the current movie name is this movie
  760.         go frame gTheDay & "idle" -- go to the proper day's transition screen
  761.         exit
  762.       else
  763.         go frame "ThinkingIdle" of movie HDPathName & "PPraziA2.dir" -- go to the 2nd movie
  764.         exit
  765.       end if
  766.     else -- if CD2 isn't in the drive
  767.       go frame "AskForCD2" of movie HDpathname & "PapHelp.Dir"
  768.       exit
  769.     end if
  770.   end if
  771. end CheckTheCDResume